const commitTooking = {
  // 搜索关键字
  searchParamFn: (state, data) => {
    state.searchParam = data
  },
//车咱代码
  stationTo: (state, data) => {
    state.stationlist = data
  },
  // 地图列表
  addMapList: (state, data) => {
    state.mapList = data
  },
  // 请求体
  httpTo: (state, data) => {
    state.http = data
  },
  // 请求体
  addOder: (state, data) => {
    state.addOderData = data
  },
  // 运输列表
  transportListTo: (state, data) => {
    state.transportList = data
  },
  // 操作是否成功
  updateStatusTo: (state, data) => {
    state.updateStatus = data.body
  },
  // 语言切换
  updateLanguage: (state, data) => {
    state.language.check = data
  },

  // 跟新user
  updateUser: (state, data) => {
    state.userData = data.body
  },
  // 设备列表
  updateDeviceList: (state, data) => {
    state.DeviceList = data
  },
  // updateUserList
  updateUserList: (state, data) => {
    state.UserList = data
  },
  // loginOut
  loginOut: (state, data) => {
    state.token = 's5x78d47xs5x78d47xs5x78d47x25'
    state.shechIput = null
    state.mapList = null
    state.cityListData = null
    state.transportList = null
    state.updateStatus = null
    state.userData = null
  },

  // 设备记录列表
  commitUpdateList: (state, data) => {
    state.updateList = data
  },
  // 跟新询价单详情 信息
  commitBizDetails: (state, data) => {
    state.Detail = data
  },

  //发送验证码
  commitSendAuth: (state, data) => {
    state.codeData = data
  },
  //托运数据源
  CommitFindConsign: (state, data) => {
    state.consign = data
  },
  // 线路详情
  updateDetail: (state, data) => {
    if(!data){
      // console.log("清除")
    }else {
      // console.log("写入")
    }
    state.searchDetail = data
  },
  // 线路推荐
  recommendLinesListTo: (state, data) => {
    state.recommendLinesList = data
  },
  //价格详情
  commitQuotation: (state, data) => {
    state.quotationDetail= data
  },
  // 弹框登陆状态码
  updaeAlertShow:(state, data) => {
    state.alertShow = data
  },
  //支持报价箱型
  commitfindLineQuotationSupport:(state, data) => {
    state.support = data
  },
  //支持的城市
  commitgetProvinceAndCity:(state, data) => {
    // console.log(data,'data')
    state.provinceAndCity = data
  },
  // 个人信息
  commitUserInfo:(state, data) => {

    state.userInfo = data
  },
  // 限重
  commitWeightConfine:(state,data) => {
    state.weightConfing = data
  },
  //
  commitDestStationCity:(state,data) => {
    state.destStationCity = data
  },
  // 客服列表
  commitCsuserList:(state,data) => {
    state.CsuserListData = data
  },
  commitLoading:(state,data) => {
    state.loading = data
  },
  // 地图列表
  commitMapList:(state,data) => {
    state.mapList = data
  },
  // 提箱点
  commitSuitcasePoint:(state,data) => {
    state.stateSuitcasePoint = data
  },
  // 客服弹框
  commitUserShow:(state,data) => {
    state.userShow = data
  },
}
export default { commitTooking }
